home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4162 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.apps.compatibility.win95,comp.lang.c++
  4. Subject: Re: HELP !!! Memory - Allocation
  5. Date: 28 Jan 1996 15:25:22 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4eg4h2$4he@news1.usa.pipeline.com>
  8. References: <1996Jan28.015441.7082@mcs.drexel.edu>
  9. NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline USA v3.3.0
  14.  
  15. On Jan 28, 1996 01:54:41 in article <Re: HELP !!! Memory - Allocation>,
  16. 'urcrawfo@mcs.drexel.edu (Programmer)' wrote: 
  17.  
  18. >It is highly recommended using the "new" operator when using C++. 
  19. >It is both practical and effifienct. 
  20. I agree with the recommendation; however, just to set the 
  21. record straight :-) 
  22.  
  23. On some systems, notably g++ 2.6.3, new performs a few  
  24. instructions of its own, then calls malloc.  This leads me to 
  25. conclude that new is less efficient than a direct call to  
  26. malloc -- although the margin is probably very narrow. 
  27.  
  28. -- 
  29. Pete Grant 
  30. Kalevi, Inc. 
  31. Object Oriented Software Development
  32.